﻿using LDM.Sys.ServiceAPI.Model.DBModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LDM.Sys.ServiceAPI.Model.ViewModel.Request.AuthorityReq
{
    /// <summary>
    /// 设置角色下用户
    /// </summary>
    /// <returns></returns>
    public class SetRoleAccountsReq
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public List<int> UserId { get; set; }

        public static SysUserRoleRel GetUserRoleRels(int userId, int roleId)
        {
            return new SysUserRoleRel
            {
                UserId = userId,
                RoleId = roleId,
            };
        }
    }
}
